package com.yyds.yygh.hospclient.repository;

import com.yyds.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    public Hospital findByHoscode(String hoscode);
    //根据医院名称获取医院列表
    public List<Hospital> findByHosnameLike(String hosname);
}
